<template>
  <header class="top-header">
    <div class="logo-container">
      <img 
        src="../assets/king.svg"
        alt="金山办公 Logo" 
        class="logo-img"
      >
    </div>
    <nav class="main-nav">
      <ul class="nav-list">
        <li class="nav-item">产品 ▾</li>
        <li class="nav-item">会员</li>
        <li class="nav-item">企业</li>
        <li class="nav-item">支持 ▾</li>
        <li class="nav-item">更多 ▾</li>
      </ul>
    </nav>
    <div class="user-info">
      <span class="user-name">志华</span>
    </div>
  </header>
</template>

<script setup>
// 若有交互逻辑（如下拉菜单），可在此补充
</script>

<style scoped>
.top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
  border-bottom: 1px solid #eee;
  background-color: #fff;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 32px;
  margin-right: 8px;
}

.logo-text {
  font-size: 18px;
  font-weight: bold;
  color: #333;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin: 0 20px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  position: relative;
}

.user-info {
  display: flex;
  align-items: center;
}

.user-name {
  font-size: 14px;
  color: #333;
  background-color: #50bfff;
  padding: 8px 12px;
  border-radius: 50%;
}
</style>